<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>
    console.log(window.a);  //找属性  走原型链

    console.log(a);// 找变量  走作用域链
</script>
</html>